It is an authorization error, when you create users to get into DBs for MySQL you need to specify what they are allowed to do in it. Unfortunately I am not good with this sorta of problems, but if you can connect to the DB, but not obtain data, it simply means that the user you are connected to the DB with probably is not allowed to Read the Data.
Make sure the credentials are correct, or set the Roles in the MySQL DB (You surely can find them on the internet)